import _fetch from './request'

//获取列表数据
function getUserList(params) {
    return _fetch({
        url:'/user/list',
        method:'get',
        params,
    })
}

// 改变状态
function getUserStatus(data) {
    return _fetch({
        url:'/user/status',
        method:'post',
        data,
    })
}

//新建用户
function addUser(data) {
    return _fetch({
        url:'/user/add',
        method:'post',
        data,
    })
}

//编辑用户
function editUser(data) {
    return _fetch({
        url:'/user/edit',
        method:'post',
        data
    })
}


//删除用户
function removeUser(data) {
    return _fetch({
        url:'/user/remove',
        method:'post',
        data
    })
}
export {getUserList,getUserStatus,addUser,editUser,removeUser}